
/**
 * ${tableClassModel.tableMemo}
 * @author ${dataSource.author}
 * @date ${time}
 */
 CREATE TABLE ${tableClassModel.tableName}(
  create_by varchar(100) NOT NULL COMMENT '创建人',
  create_time datetime NOT NULL COMMENT '创建时间',
  update_by varchar(100) NOT NULL COMMENT '更新人',
  update_time datetime NOT NULL COMMENT '更新时间',
<#list tableClassModel.mapping as being>
  ${being.column} ${being.fullJdbcType}  ${being.isAllowNull}  COMMENT '${being.memo}',
</#list>	
PRIMARY KEY(${tableClassModel.primaryKey.column})
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='${tableClassModel.tableMemo}';

/**
 *
 *生成菜单的sql 默认在权限管理目录下
 */
INSERT INTO `sys_function` 
VALUES 
      ('开发者', now(), 
      '开发者', now(), 
      replace(uuid(), '-', ''), 
      '', 'admin/${tableClassModel.className}-list', '否', '2', 
      '05fb2915b39b4021a51d406473f0ee91', 
      '${tableClassModel.tableMemo}', '4', '${tableClassModel.className}', '123', '是', null);
